from kitool.ConfigKit import readConf
from kitool import NlpKit as nlp


def read_conf_info(tag):
    conf = readConf('static/markdown.ini')
    return conf[tag]




if __name__ == '__main__':
    # path = r'D:\00ai\datas'
    # name = 'nlp问题清单'
    # df = read_excel(path, name)
    #
    # key_list = ['deep_info', 'json_info']
    # func_list = [get_deep_df, get_json_df]
    # tag_list = ['deep', 'md']
    #
    # for key, func, tag in zip(key_list, func_list, tag_list):
    #     df[key] = df.apply(func, args=(read_conf_info(tag),), axis=1)
    #
    # out_name = 'out_valid'
    # write_excel(df, path, out_name)

    nlp.valid_excel_to_gen_md(read_conf_info)
    print('Over !!!')













